{% extends "projects/base.html" %}

{% load i18n %}
{% load person_tags %}

{% block head_title %}People{% endblock %}

{% block tab_id %}id="rtab_people"{% endblock %}

{% block body %}
        <div class="right_panel">
            <div class="people">
                <h2>{% trans "People" %}</h2>
                <table width="100%">
		  <tr>
		    <th>Name</th>
		    <th>Status</th>
		    <th>Username</th>
		    <th>7 day Allocation</th>
		    <th>28 day Allocation</th>
		    <th>56 day Allocation</th>
		    <th>112 day Allocation</th>
		    <th>Actions</th>
		  </tr>
                    {% for person in object_list %}
                       <tr>
			 <td>
                           <a href="{% url person_summary object_id=person.id %}"><div class="name">{{ person.first_name }} {{ person.last_name }}</div></a>
			 </td>
			 <td>{% person_status person %}</td>
			 <td>
			   <a href="/project/person/{{ person.id }}">{{ person.username }}</a>
			 </td>
			 <td>{% person_allocation person 7 %}</td>
			 <td>{% person_allocation person 28 %}</td>
			 <td>{% person_allocation person 56 %}</td>
			 <td>{% person_allocation person 112 %}</td>
			 <td>
			   <a href="{% url person_detail object_id=person.id %}">Detail</a>
			   <a href="{% url project_person_calendar object_id=person.id %}">iCal</a>
			 </td>
		       </tr>
                    {% endfor %}
                </table>
            </div>
        </div>
{% endblock %}
